package com.jumi.microservice.dto.request;

import com.jumi.microservice.enums.Level;
import com.jumi.microservice.enums.SendType;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotNull;

public class NoticeUpdateRequest {

    @ApiModelProperty(value = "推送标题")
    @NotNull
    private String title;

    @ApiModelProperty(value = "推送内容")
    @NotNull
    private String content;

    @ApiModelProperty(value = "发送类型：1:全部;2:指定会员;3:指定等级")
    @NotNull
    private SendType sendType;

    @ApiModelProperty(value = "跳转地址")
    private String params;

    @ApiModelProperty(value = "指定会员发送时，需要指定会员id")
    private Integer[] ids;

    @ApiModelProperty(value = "指定等级时，需要指定等级")
    private Integer[] levels;

    @ApiModelProperty
    private Integer spuId;

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public SendType getSendType() {
        return sendType;
    }

    public void setSendType(SendType sendType) {
        this.sendType = sendType;
    }

    public Integer[] getIds() {
        return ids;
    }

    public void setIds(Integer[] ids) {
        this.ids = ids;
    }

    public Integer[] getLevels() {
        return levels;
    }

    public void setLevels(Integer[] levels) {
        this.levels = levels;
    }

    public String getParams() {
        return params;
    }

    public void setParams(String params) {
        this.params = params;
    }

    public Integer getSpuId() {
        return spuId;
    }

    public void setSpuId(Integer spuId) {
        this.spuId = spuId;
    }
}
